package main

import (
	"fmt"
)
//map 切片  make/append/delete/len/copy/new
func main(){


	var teacher []map[string]string 
	teacher = make([]map[string]string,2)

	if teacher[0]==nil{

		teacher[0] = make(map[string]string,2)
		teacher[0]["name"]="老三"
		teacher[0]["age"]="200"
	}
	if teacher[1]==nil{

		teacher[1] = make(map[string]string,2)
		teacher[1]["name"]="lucy"
		teacher[1]["age"]="300"
	}


	newTeacher:=map[string]string{
		"name":"jack",
		"age":"500",
	}
	teacher = append(teacher,newTeacher)
	fmt.Println(teacher)
}